package cc.shacocloud.luanniao.core.service

import cc.shacocloud.luanniao.core.model.dto.input.KnowledgeBaseInput
import cc.shacocloud.luanniao.core.model.dto.input.KnowledgeBaseListInput
import cc.shacocloud.luanniao.core.model.mo.UserNamespaceMo
import cc.shacocloud.luanniao.core.model.po.KnowledgeBasePo
import org.springframework.data.domain.Page

/**
 * 知识库相关接口
 *
 * @author 思追(shaco)
 */
interface KnowledgeBaseService {

    /**
     * 知识库列表
     */
    suspend fun list(input: KnowledgeBaseListInput, userNamespaceMo: UserNamespaceMo): Page<KnowledgeBasePo>

    /**
     * 创建知识库
     */
    suspend fun create(input: KnowledgeBaseInput, userNamespaceMo: UserNamespaceMo): KnowledgeBasePo


}